-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: Replace github.com/nspcc-dev/neofs-api-go/v2
module
#667
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Leonard Lyubich <[email protected]>
It will be useful for `interface { Marshal() []byte }` implementations. Signed-off-by: Leonard Lyubich <[email protected]>
) | ||
|
||
// Decimal represents decimal number for accounting operations. | ||
// | ||
// Decimal is mutually compatible with github.com/nspcc-dev/neofs-api-go/v2/accounting.Decimal | ||
// message. See ReadFromV2 / WriteToV2 methods. | ||
// Decimal is mutually compatible with [protoaccounting.Decimal] message. See |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest to drop such statements since regular user is not interested in this
// See also WriteToV2. | ||
func (d *Decimal) ReadFromV2(m accounting.Decimal) error { | ||
*d = Decimal(m) | ||
// See also [Decimal.ProtoMessage]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this, Client
and node developers know what to use
// | ||
// See also WriteToV2. | ||
func (d *Decimal) ReadFromV2(m accounting.Decimal) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that temporary Deprecated
mark wont work: conflicting import panic occurs
TBD Signed-off-by: Leonard Lyubich <[email protected]>
ebbfb2d
to
fb12af3
Compare
Signed-off-by: Leonard Lyubich <[email protected]>
fb12af3
to
b14fc37
Compare
ReadFromV2
/WriteToV2
Client